#!/bin/bash

mencoder -of lavf -lavfopts format=mp4 -oac lavc -ovc lavc -lavcopts aglobal=1:vglobal=1:acodec=libfaac:abitrate=128:vcodec=mpeg4:keyint=25 -ofps 25 -af avcresample=44100 -vf harddup,scale=320:-3 $1.avi -o $1.mp4

